package com.yq.emp.service;

import com.yq.emp.mapper.DeptMapper;
import com.yq.emp.model.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    DeptMapper deptMapper;


    @Override
    public List<Dept> getAllDept() {
        return deptMapper.findAll();
    }
}
